using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace zeroflag.Windows._TreeView
{
	partial class TreeViewControl : System.Windows.Forms.TreeView
	{
		public TreeViewControl()
		{
			InitializeComponent();
		}

		protected override void OnDrawNode(DrawTreeNodeEventArgs e)
		{
			if (e.Node is ITreeNodeRenderable)
			{
				((ITreeNodeRenderable)e.Node).Render(e);
			}
			else
			{
				base.OnDrawNode(e);
			}
		}
	}
}
